using AppodealAds.Unity.Api;
using UnityEngine;

public class GameMenuCanvas : MonoBehaviour
{
	private void Start()
	{
		if (Appodeal.isLoaded(3))
		{
			Appodeal.show(3);
		}
	}

	public void Resume()
	{
		MouseLock.MouseLocked = true;
		base.gameObject.SetActive(value: false);
	}

	public void Disconnect()
	{
		if ((bool)UnitZ.gameManager)
		{
			UnitZ.gameManager.QuitGame();
		}
		MouseLock.MouseLocked = false;
		base.gameObject.SetActive(value: false);
	}
}
